<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/include/head.jsp"%>
<div class="pageHeader" ${TODO=='INC_PAGER'?'style="display:none"':''}>
	<form rel="pagerForm" id="searchForm" onsubmit="return navTabSearch(this);" action="cyzj/cyzjPager.do?ACTION=${ACTION}&TODO=${TODO}" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						创业之家名称:
						<input size="10" type="text" name="map.orgName_L" value="${pager.scMap.orgName_L}">
						所属区域:
						<select name="map.areaId">
							<option value="">请选择</option>
						<c:forEach items="${Dict.getList('AREA')}"  var="item" varStatus="varStatus">
							<option value="${item.KEY}"  ${pager.scMap.areaId==item.KEY?'selected':''}>${item.VALUE}</option>
				    	</c:forEach>
						</select>
						发起人导师:
						<input size="10" type="hidden" name="map.dsEmpId" id="dsEmpId" value="${pager.scMap.dsEmpId}"/>
						<input size="10" type="text" alt="" value="${Dict.getAlias('DsEmp',pager.scMap.dsEmpId)}" size="10" id="dsName"></input>
						主要特点:
						<input size="10" type="text" name="map.labelMain_L" value="${pager.scMap.labelMain_L}">
						办公设施:
						<input size="10" type="text" name="map.labelOffice_L" value="${pager.scMap.labelOffice_L}">
						专管员:
				    	<select name="map.adminUserId_I">
							<option value="">请选择</option>
						<c:forEach items="${Dict.getList('ZdzxEmp')}"  var="item" varStatus="varStatus">
							<option value="${item.KEY}"  ${pager.scMap.adminUserId_I==item.KEY?'selected':''}>${item.VALUE}</option>
				    	</c:forEach>
				    	</select>
						审核状态:
				    	<select name="map.approveStatus">
							<option value="">请选择</option>
						<c:forEach items="${Dict.getList('APPROVE_STATUS')}"  var="item" varStatus="varStatus">
							<option value="${item.KEY}"  ${pager.scMap.approveStatus==item.KEY?'selected':''}>${item.VALUE}</option>
				    	</c:forEach>
				    	</select>
		      		</td>
				</tr>
			</table>
		 		<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>

<div class="panelBar" ${TODO=='INC_PAGER'?'style="display:none"':''}>
	<ul class="toolBar">
		<li><a class="icon" href='javascript:exportExcel($("#searchForm",navTab.getCurrentPanel()), $("#pagerForm",navTab.getCurrentPanel()))' title="确实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
	</ul>
</div>

<div layoutH="116" id="w_list_print">
	<table class="table" width="98%" targetType="navTab" asc="asc" desc="desc">
		<thead>
			<tr>
				<th width="30">No.</th>
				<th width="175" orderField="orgName" <c:if test='${pager.orderField=="orgName"}'>class="${param.orderDirection}"</c:if> >创业之家名称</th>
				<th width="175"  orderField="companyName" <c:if test='${pager.orderField=="companyName"}'>class="${param.orderDirection}"</c:if> >主体</th>
				<th width="70"  >所属区域</th> 
				<th width="70"  >发起人导师</th>
				<th width="85" orderField="contact" <c:if test='${pager.orderField=="contact"}'>class="${param.orderDirection}"</c:if> >联系人</th>
				<th width="85" orderField="tel" <c:if test='${pager.orderField=="tel"}'>class="${param.orderDirection}"</c:if> >联系电话</th>
				<th orderField="labelMain" <c:if test='${pager.orderField=="labelMain"}'>class="${param.orderDirection}"</c:if> >主要特点</th>
				<th orderField="labelOffice" <c:if test='${pager.orderField=="labelOffice"}'>class="${param.orderDirection}"</c:if> >共享设施</th>
				<th width="45" >专管员A</th>
				<th width="45" >专管员B</th>
				<th width="45" >排序值</th>
				<th width="60" >审核状态</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.resultList}" var="item" varStatus="varStatus">
				<tr target="sid_${entity }" rel="${item.id}">
					<td align="right">${varStatus.count}</td>	
					<td><a target="navTab" href="cyzj/toCyzjEditor/${item.id}.do?funId=${funId}" rel="cyzjEditor">${item.orgName}</a></td>
					<td>${item.companyName}</td>
					<td>${Dict.getAlias('AREA',item.areaId)}</td>
					<td>${Dict.getAlias('DsEmp',item.dsEmpId)}</td>		
					<td>${item.contact}</td>			
					<td>${item.tel}</td>
					<td><a title="${item.labelMain}">${item.labelMain}</a></td>		
					<td><a title="${item.labelOffice}">${item.labelOffice}</a></td>	
					<td>${Dict.getAlias('USER',item.adminUserId)}</td>	
					<td>${Dict.getAlias('USER',item.adminUserId2)}</td>	
					<td align="left">${item.orderInt}</td>	
					<td>
						<!-- 
						<a title="审核日志"  width="900" height="480" target="dialog" href="common/approveLogPager.do?entityType=CyzjOrg&entityId=${item.id}" rel="approveLogPagerDialog">${Dict.getAlias('APPROVE_STATUS',item.approveStatus)}</a>
						 -->	
						 ${Dict.getAlias('APPROVE_STATUS',item.approveStatus)}
					</td>
					<td>
						<c:if test="${TODO=='EDIT' || TODO=='UPDATE'}">
					    <a title="修改创业之家" target="navTab" href="cyzj/toCyzjEditor/${item.id}.do?ACTION=MODIFY&TODO=${TODO}&funId=${funId}" rel="cyzjEditor">编辑</a>&nbsp;&nbsp;
					    </c:if>
					    <c:if test="${TODO=='APPROVE'}">
						<a title="审核创业之家" target="navTab" href="cyzj/toCyzjEditor/${item.id}.do?ACTION=VIEW&TODO=APPROVE&funId=${funId}" rel="cyzjEditor">审核</a>&nbsp;&nbsp;
						</c:if>
						<a title="预览创业之家" target="_blank" href="m/cyzjDetail.do?id=${item.id}" >预览</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<jsp:include page="../include/pagerDiv.jsp" flush="true" />


<script type="text/javascript">
	$(document).ready(function(){
		setEmp = function (event, ui) { 
	        if (ui != null && ui.item != null) { 
	            $("#dsEmpId",navTab.getCurrentPanel()).val(ui.item.id); 
	        } 
	    };
		$("#dsName",navTab.getCurrentPanel()).autocomplete({
			source: getDsEmp,
			minLength:2,
			select: setEmp
		});
	});
</script>